chiark / gitweb /
Moved xmalloc etc. into both.c
[userv.git] / Makefile.in
index 5a3d0b7e8b8b439cee1bb4283b6deda8f4591bff..eb162513118cb847dc678c4fa72ce6f2bcc668c7 100644 (file)
@@ -46,7 +46,7 @@ docdir=$(prefix)/userv
 
 TARGETS=       daemon client
 TARGETS_DOC_PS=        spec.ps overview.ps
-TARGETS_DOC=   spec.html/index.html $(TARGETS_DOC_PS)
+TARGETS_DOC=   spec.html $(TARGETS_DOC_PS)
 
 SOURCES=       Makefile.in configure.in acconfig.h                     \
                client.c common.h                                       \
@@ -126,8 +126,6 @@ version.h:  Makefile
 
 tokens.h:      language.i4
 
-               rm -f *.o *~ core ./#*#
-
 autoconf configure:
                autoheader
                autoconf
@@ -136,7 +134,7 @@ clean:
                find -name '*.orig' -o -name '*~' -o -name '.*~' \
                        -o -name '*#' -o -name '.#*' -o -name '*.bak' \
                        | xargs -r rm
-               rm -rf $(TARGETS) *.o version.h
+               rm -rf $(TARGETS) *.o core version.h
                rm -f overview.eps
                rm -f spec.lout* spec.text* spec.ps?* spec.sgml.new
                rm -f lout.li *.ld *.lix *.ldx
@@ -150,6 +148,10 @@ maintainer-clean:  distclean
 
 dist-prep:     $(GENSHIP)
 
+pre-checkin:
+               ./configure
+               $(MAKE) dist-prep
+
 dist_tmp=dist_tmp/userv-$(VERSION)
 dist_prune=\( -name CVS -o -name 'dist_tmp*' -o -name slash-etc -o -name vd \)
 dist:                  dist-prep distclean
@@ -167,7 +169,7 @@ linecount:  $(SOURCES)
                wc -l $^
 
 %.html:                %.sgml
-               rm -rf $@; debiandoc2html $<
+               debiandoc2html $<
 
 %.ps:          %.sgml
                debiandoc2ps -1 -O $< >$@.new && mv $@.new $@