deutex makefile: distclean target and "make help" change

  • From: Jon Dowland <jon@xxxxxxxxxxx>
  • To: yadex@xxxxxxxxxxxxx
  • Date: Mon, 17 Apr 2006 13:33:14 +0100

Hello,

This patch adds a "make distclean" target which behaves like
an autoconf Makefile would. If you included this, it would
minorly simplify the rules file for the debian package.

It also changes the multiple echo calls in the "make help"
target to one: my terminal is pretty slow (gnome-terminal)
and the multiple calls actually lagged the terminal on
print-out!

Also, some good news: the deutex is sitting in debian's NEW
queue!

Happy easter,

-- 
Jon Dowland
http://alcopop.org/
Patch to add "distclean" target which reverses the effects of
./configure (i.e. removes ./Makefile and ./src/config.h)

Also change "make help" to only invoke echo once (my slow terminal was
lagging with multiple calls)

                                        Jon Dowland, <jon@xxxxxxxxxxx>
                                       Mon, 17 Apr 2006 13:28:56 +0100

--- deutex-4.4.902-pristine/Makefile.in 2005-08-31 18:10:56.000000000 +0100
+++ deutex-4.4.902/Makefile.in  2006-04-17 13:15:18.000000000 +0100
@@ -317,6 +317,9 @@
        rm -f $(OBJTEX) $(OBJSF) $(DOBJTEX) $(DOBJSF) deutex deusf
        rm -f deutex.exe deusf.exe
 
+distclean: clean
+       rm -f Makefile src/config.h
+
 # dist - make the distribution archive for Unix (.tar.gz)
 dist: $(DISTFILES) $(DDOCUNIX)
        mkdir -p $(DISTDIR)
@@ -363,23 +366,23 @@
 
 # help - display list of interesting targets
 help:
-       @echo "Targets for end users:"
-       @echo "  [all]       Build DeuTex and DeuSF"
-       @echo "  install     Install DeuTex, DeuSF and the doc"
-       @echo
-       @echo "Targets for developers:"
-       @echo "  doc         Just the doc"
-       @echo "  dall        Alias for ddeutex + ddeusf"
-       @echo "  ddt         Alias for ddeutex"
-       @echo "  dds         Alias for ddeusf"
-       @echo "  ddeutex     Debug version of DeuTex -> ./deutex"
-       @echo "  ddeusf      Debug version of DeuSF  -> ./deusf"
-       @echo "  dist        Source dist. (Unix)     -> ./deutex-VERSION.tar.gz"
-       @echo "  distdos     Source dist. (DOS)      -> ./dtexVERSION.zip"
-       @echo "  distbindos  Binary-only dist. (DOS) -> 
./deutex-VERSION.bin.dos.zip"
-       @echo "  save        Backup archive          -> 
../deutex-YYYYMMDD.tar.gz"
-       @echo "  strip       Strip ./deutex and ./deusf"
-       @echo "  test        Run all tests (long)"
-       @echo "  clean       Remove executables and object files"
-
-
+       @echo -e "Targets for end users:\n"\
+                "  [all]       Build DeuTex and DeuSF\n"\
+                "  install     Install DeuTex, DeuSF and the doc\n"\
+                "\n"\
+                "Targets for developers:\n"\
+                "  doc         Just the doc\n"\
+                "  dall        Alias for ddeutex + ddeusf\n"\
+                "  ddt         Alias for ddeutex\n"\
+                "  dds         Alias for ddeusf\n"\
+                "  ddeutex     Debug version of DeuTex -> ./deutex\n"\
+                "  ddeusf      Debug version of DeuSF  -> ./deusf\n"\
+                "  dist        Source dist. (Unix)     -> 
./deutex-VERSION.tar.gz\n"\
+                "  distdos     Source dist. (DOS)      -> ./dtexVERSION.zip\n"\
+                "  distbindos  Binary-only dist. (DOS) -> 
./deutex-VERSION.bin.dos.zip\n"\
+                "  save        Backup archive          -> 
../deutex-YYYYMMDD.tar.gz\n"\
+                "  strip       Strip ./deutex and ./deusf\n"\
+                "  test        Run all tests (long)\n"\
+                "  clean       Remove executables and object files\n"\
+                "  distclean   clean, plus undo ./configure actions\n"\
+       

Other related posts: