[Dctrl-tools-devel] dctrl-tools-experimental: Makefile: rename as GNUmakefile

Antti-Juhani Kaijanaho ajk at debian.org
Sun Apr 8 12:21:26 UTC 2007


Sun Apr  8 15:10:52 EEST 2007  Antti-Juhani Kaijanaho <ajk at debian.org>
  * Makefile: rename as GNUmakefile
diff -rN -u old-dctrl-tools-experimental/GNUmakefile new-dctrl-tools-experimental/GNUmakefile
--- old-dctrl-tools-experimental/GNUmakefile	1970-01-01 02:00:00.000000000 +0200
+++ new-dctrl-tools-experimental/GNUmakefile	2007-04-08 15:21:25.000000000 +0300
@@ -0,0 +1,122 @@
+
+sysconfdir = /etc
+localedir = /usr/share/locale
+version := $(shell dpkg-parsechangelog | grep '^Version' | cut -b10-)
+
+CC = gcc -std=gnu99
+CFLAGS = -g -Wall -Ilib \
+	 -DENABLE_L_DEBUG -D_GNU_SOURCE -DSYSCONF=\"$(sysconfdir)\" \
+         -DHAVE_GETTEXT -DPACKAGE=\"dctrl-tools\" -DLOCALEDIR=\"$(localedir)\" 
+
+CFLAGS += -DVERSION=\"$(version)\"
+CFLAGS += -DMAINTAINER='"$(shell grep ^Maintainer: debian/control | cut -b13-)"'
+
+#CFLAGS += -DNDEBUG
+
+#CFLAGS += -pg
+#LDFLAGS += -pg
+
+libsrc = $(wildcard lib/*.c)
+libobj = $(libsrc:.c=.o)
+
+src = $(libsrc) \
+      $(wildcard grep-dctrl/*.c) \
+      $(wildcard sort-dctrl/*.c) \
+      $(wildcard tbl-dctrl/*.c)
+
+exe =  	grep-dctrl/grep-dctrl \
+	sort-dctrl/sort-dctrl \
+	tbl-dctrl/tbl-dctrl 
+
+LDLIBS = -L. -ldctrl
+
+# List of translated languages is given in langs.mk
+include langs.mk
+
+all :	all-no-mo mo
+
+all-no-mo :	sync-available/sync-available \
+		man/grep-dctrl.1 \
+		man/sort-dctrl.1 \
+		$(exe)
+
+pot : po/dctrl-tools.pot
+
+po : $(foreach f,$(langs),po/$(f).po)
+
+mo : $(foreach f,$(langs),po/$(f).mo)
+
+grep-dctrl/grep-dctrl : grep-dctrl/grep-dctrl.o grep-dctrl/rc.o libdctrl.a
+
+sort-dctrl/sort-dctrl : sort-dctrl/sort-dctrl.o libdctrl.a
+
+tbl-dctrl/tbl-dctrl : tbl-dctrl/tbl-dctrl.o libdctrl.a
+
+% : %.o
+	$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
+
+%.d: %.c
+	$(CC) -M $(CPPFLAGS) $< > $@.$$$$; \
+	   sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
+	   rm -f $@.$$$$
+
+
+libdctrl.a : $(libobj)
+	ar cr $@ $^
+	ranlib $@
+
+libdctrl.so : $(soobj)
+	$(LD) -shared -o $@ $^ -lc $(SOLDLIBS)
+
+%.test : %.test.o
+
+%.test.o : %.c
+	$(CC) -c $(CFLAGS) -DTESTMAIN $< -o $@
+
+so/%.o : %.c
+	$(CC) -fPIC $(CFLAGS) -c $< -o $@
+
+%.1 : %.1.cp
+	sed 's*SYSCONF*$(sysconf)*' $< > $@
+
+sync-available/sync-available : sync-available/sync-available.cp
+	sed 's*VERSION*$(version)*' $< > $@
+	chmod 755 $@
+
+xgettext_opts=--copyright-holder="Antti-Juhani Kaijanaho" \
+	      --msgid-bugs-address="ajk at debian.org" -kN_ -k_
+
+po/%.po : po/dctrl-tools.pot
+	msgmerge -q -U --backup=existing $@ $^
+
+po/%.mo : po/%.po
+	msgfmt -c --statistics -o $@ $< 
+
+po/dctrl-tools.pot : $(src)
+	xgettext $(xgettext_opts) -d grep-dctrl $^
+	mv grep-dctrl.po $@
+
+fsaf.test : fsaf.test.o msg.o
+
+test :	all
+	./tester.sh
+
+clean :
+	$(RM) core $(exe) grep-dctrl.1 $(obj) so/*.o libdctrl.a libdctrl.so
+	$(RM) po/*.mo TAGS *.d
+	$(RM) sync-available/sync-available
+
+distclean : clean
+
+maintainer-clean : distclean
+	$(RM) po/*.pot
+
+tags :
+	etags *.[hc]
+
+ifeq ($(MAKECMDGOALS),clean)
+else ifeq ($(MAKECMDGOALS),distclean)
+else ifeq  ($(MAKECMDGOALS),maintainer-clean)
+else
+include $(obj:.o=.d)
+endif
diff -rN -u old-dctrl-tools-experimental/Makefile new-dctrl-tools-experimental/Makefile
--- old-dctrl-tools-experimental/Makefile	2007-04-08 15:21:24.000000000 +0300
+++ new-dctrl-tools-experimental/Makefile	1970-01-01 02:00:00.000000000 +0200
@@ -1,122 +0,0 @@
-
-sysconfdir = /etc
-localedir = /usr/share/locale
-version := $(shell dpkg-parsechangelog | grep '^Version' | cut -b10-)
-
-CC = gcc -std=gnu99
-CFLAGS = -g -Wall -Ilib \
-	 -DENABLE_L_DEBUG -D_GNU_SOURCE -DSYSCONF=\"$(sysconfdir)\" \
-         -DHAVE_GETTEXT -DPACKAGE=\"dctrl-tools\" -DLOCALEDIR=\"$(localedir)\" 
-
-CFLAGS += -DVERSION=\"$(version)\"
-CFLAGS += -DMAINTAINER='"$(shell grep ^Maintainer: debian/control | cut -b13-)"'
-
-#CFLAGS += -DNDEBUG
-
-#CFLAGS += -pg
-#LDFLAGS += -pg
-
-libsrc = $(wildcard lib/*.c)
-libobj = $(libsrc:.c=.o)
-
-src = $(libsrc) \
-      $(wildcard grep-dctrl/*.c) \
-      $(wildcard sort-dctrl/*.c) \
-      $(wildcard tbl-dctrl/*.c)
-
-exe =  	grep-dctrl/grep-dctrl \
-	sort-dctrl/sort-dctrl \
-	tbl-dctrl/tbl-dctrl 
-
-LDLIBS = -L. -ldctrl
-
-# List of translated languages is given in langs.mk
-include langs.mk
-
-all :	all-no-mo mo
-
-all-no-mo :	sync-available/sync-available \
-		man/grep-dctrl.1 \
-		man/sort-dctrl.1 \
-		$(exe)
-
-pot : po/dctrl-tools.pot
-
-po : $(foreach f,$(langs),po/$(f).po)
-
-mo : $(foreach f,$(langs),po/$(f).mo)
-
-grep-dctrl/grep-dctrl : grep-dctrl/grep-dctrl.o grep-dctrl/rc.o libdctrl.a
-
-sort-dctrl/sort-dctrl : sort-dctrl/sort-dctrl.o libdctrl.a
-
-tbl-dctrl/tbl-dctrl : tbl-dctrl/tbl-dctrl.o libdctrl.a
-
-% : %.o
-	$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
-
-%.d: %.c
-	$(CC) -M $(CPPFLAGS) $< > $@.$$$$; \
-	   sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
-	   rm -f $@.$$$$
-
-
-libdctrl.a : $(libobj)
-	ar cr $@ $^
-	ranlib $@
-
-libdctrl.so : $(soobj)
-	$(LD) -shared -o $@ $^ -lc $(SOLDLIBS)
-
-%.test : %.test.o
-
-%.test.o : %.c
-	$(CC) -c $(CFLAGS) -DTESTMAIN $< -o $@
-
-so/%.o : %.c
-	$(CC) -fPIC $(CFLAGS) -c $< -o $@
-
-%.1 : %.1.cp
-	sed 's*SYSCONF*$(sysconf)*' $< > $@
-
-sync-available/sync-available : sync-available/sync-available.cp
-	sed 's*VERSION*$(version)*' $< > $@
-	chmod 755 $@
-
-xgettext_opts=--copyright-holder="Antti-Juhani Kaijanaho" \
-	      --msgid-bugs-address="ajk at debian.org" -kN_ -k_
-
-po/%.po : po/dctrl-tools.pot
-	msgmerge -q -U --backup=existing $@ $^
-
-po/%.mo : po/%.po
-	msgfmt -c --statistics -o $@ $< 
-
-po/dctrl-tools.pot : $(src)
-	xgettext $(xgettext_opts) -d grep-dctrl $^
-	mv grep-dctrl.po $@
-
-fsaf.test : fsaf.test.o msg.o
-
-test :	all
-	./tester.sh
-
-clean :
-	$(RM) core $(exe) grep-dctrl.1 $(obj) so/*.o libdctrl.a libdctrl.so
-	$(RM) po/*.mo TAGS *.d
-	$(RM) sync-available/sync-available
-
-distclean : clean
-
-maintainer-clean : distclean
-	$(RM) po/*.pot
-
-tags :
-	etags *.[hc]
-
-ifeq ($(MAKECMDGOALS),clean)
-else ifeq ($(MAKECMDGOALS),distclean)
-else ifeq  ($(MAKECMDGOALS),maintainer-clean)
-else
-include $(obj:.o=.d)
-endif





More information about the Dctrl-tools-devel mailing list