]> granicus.if.org Git - apache/commitdiff
FreeBSD's make doesn't like the 'implied source' syntax ($<) -- using $? which works.
authorMartin Kraemer <martin@apache.org>
Tue, 3 Dec 2002 09:47:11 +0000 (09:47 +0000)
committerMartin Kraemer <martin@apache.org>
Tue, 3 Dec 2002 09:47:11 +0000 (09:47 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97767 13f79535-47bb-0310-9956-ffa450edef68

server/Makefile.in

index 091b4f314c41976a32f707ec0e988f0d72aa494b..6d842c51d0bf52793d97609fa6eff4c3ec52a46d 100644 (file)
@@ -34,7 +34,7 @@ EXPORT_DIRS = $(top_srcdir)/include $(top_srcdir)/os/$(OS_DIR) $(APR_INCLUDEDIR)
 
 delete-exports: export_files
        @if test -f exports.c; then \
-           files=`cat $<`; \
+           files=`cat $?`; \
            headers="`find $$files -newer exports.c`"; \
            if test -n "$$headers"; then \
                echo Found newer headers. Will rebuild exports.c.; \
@@ -49,15 +49,15 @@ export_files:
        for dir in $(EXPORT_DIRS); do \
            find $$dir -maxdepth 1 -type f -name '*.h' >> $$tmp; \
        done; \
-       cat $$tmp | sort | uniq > $@; \
+       sort -u $$tmp > $@; \
        rm -f $$tmp
 
 # full path required to keep BSD make happy
 $(top_builddir)/server/exports.c: export_files
-       $(AWK) -f $(top_srcdir)/build/make_exports.awk `cat $<` > $@
+       $(AWK) -f $(top_srcdir)/build/make_exports.awk `cat $?` > $@
 
 export_vars.h: export_files
-       $(AWK) -f $(top_srcdir)/build/make_var_export.awk `cat $<` > $@
+       $(AWK) -f $(top_srcdir)/build/make_var_export.awk `cat $?` > $@
 
 # wtf does this have to be explicit????
 exports.lo: exports.c