]> Dogcows Code - chaz/openbox/blobdiff - util/epist/Makefile.am
initial checkin
[chaz/openbox] / util / epist / Makefile.am
index 9b92b5f85e078a5580a45d087b2a70617c805416..20e3ceee2d6cf5f2b946be7e38288ce3ba62f33d 100644 (file)
@@ -1,20 +1,43 @@
 # util/epist/Makefile.am for Blackbox - an X11 Window manager
 
-CPPFLAGS= @CPPFLAGS@ @DEBUG@
+DEFAULT_RC=$(pkgdatadir)/epistrc
 
-EXTRA_PROGRAMS =               epist
+CLEANFILES = epist.1 epistrc.5
 
-epist_SOURCES =                epist.cc window.cc screen.cc main.cc actions.cc yacc_parser.cc parser.cc keytree.cc lex.yy.c
+CPPFLAGS= @CPPFLAGS@ @DEBUG@ -DDEFAULTRC=\"$(DEFAULT_RC)\"
+
+#EXTRA_PROGRAMS =              epist
+bin_PROGRAMS =         epist
+
+man_MANS = epist.1 epistrc.5
+
+epist_SOURCES =                epist.cc window.cc screen.cc main.cc actions.cc yacc_parser.cc parser.cc keytree.cc lex.yy.c config.cc
 epist_LDADD =          ../../src/XAtom.o ../../src/BaseDisplay.o \
-                                       ../../src/Util.o ../../src/i18n.o \
-                                       ../../src/GCCache.o ../../src/Color.o ../../src/Texture.o \
-                                       ../../src/Timer.o ../../src/Image.o ../../src/ImageControl.o
+                                       ../../src/Util.o ../../src/i18n.o ../../src/Timer.o \
+                                       ../../src/GCCache.o ../../src/Color.o
+#                                      ../../src/Texture.o \
+#                                      ../../src/Image.o ../../src/ImageControl.o
 
 MAINTAINERCLEANFILES = Makefile.in
 
 distclean-local:
        rm -f *\~ .\#*
 
+epist.1: epist.1.in
+       @regex_cmd@ -e "s,@pkgdatadir@,$(pkgdatadir)," \
+               epist.1.in > epist.1
+
+epistrc.5: epistrc.5.in
+       @regex_cmd@ -e "s,@pkgdatadir@,$(pkgdatadir)," \
+               epistrc.5.in > epistrc.5
+
+install-data-local: epistrc
+       test -f $(DESTDIR)$(pkgdatadir)/epistrc || \
+       $(INSTALL_DATA) epistrc $(DESTDIR)$(pkgdatadir)
+
+uninstall-am:
+       rm -f $(DESTDIR)$(pkgdatadir)/epistrc
+
 # local dependencies
 
 actions.o: actions.cc actions.hh
@@ -34,7 +57,10 @@ screen.o: screen.cc ../../src/BaseDisplay.hh ../../src/Timer.hh \
 window.o: window.cc epist.hh actions.hh window.hh ../../src/Util.hh \
   keytree.hh screen.hh ../../src/BaseDisplay.hh ../../src/Timer.hh \
   ../../src/XAtom.hh
+config.o: config.cc config.hh ../../src/Util.hh \
+  keytree.hh screen.hh ../../src/BaseDisplay.hh ../../src/Timer.hh \
+  ../../src/XAtom.hh
 yacc_parser.cc: epist.y
-       yacc -d epist.y -o yacc_parser.cc
+       bison -d epist.y -o yacc_parser.cc
 lex.yy.c: epist.l
        lex epist.l
This page took 0.02403 seconds and 4 git commands to generate.