add DESTDIR support and .PHONY

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4572 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1998-03-15 05:58:31 +00:00
parent 59d3830d83
commit 6554532c43
23 changed files with 137 additions and 74 deletions

View File

@@ -51,3 +51,5 @@ realclean:
SUBDIRS=$(SUBDIRS); \
for i in $$SUBDIRS; \
do (cd $$i && $(MAKE) $(MFLAGS) realclean); done
.PHONY: all Wall install uninstall check clean mostlyclean distclean realclean

View File

@@ -42,12 +42,15 @@ Wall:
$(CC) -c $(DEFS) -I../../../include -I$(srcdir) $(CFLAGS) $(CPPFLAGS) $(PICFLAGS) $<
install: all
$(MKINSTALLDIRS) $(libdir)
$(MKINSTALLDIRS) $(DESTDIR)$(libdir)
-if test "$(LIB)" != ""; then \
$(INSTALL_DATA) -m 0555 $(LIB) $(libdir) ; \
$(INSTALL_DATA) -m 0555 $(LIB) $(DESTDIR)$(libdir)/$(LIB) ; \
fi
uninstall:
-if test "$(LIB)" != ""; then \
rm -f $(DESTDIR)$(libdir)/$(LIB) ; \
fi
TAGS: $(SOURCES)
etags $(SOURCES)
@@ -76,3 +79,5 @@ $(OBJECTS): ../../../include/config.h
$(LIB): $(OBJECTS)
rm -f $@
$(LDSHARED) -o $@ $(OBJECTS) $(LD_FLAGS) -L../../kafs -lkafs -L../../krb -lkrb -L../../des -ldes -L../../roken -lroken
.PHONY: all Wall install uninstall check clean mostlyclean distclean realclean dist

View File

@@ -41,12 +41,15 @@ Wall:
$(CC) -c $(DEFS) -I../../../include -I$(srcdir) $(CFLAGS) $(CPPFLAGS) $(PICFLAGS) $<
install: all
$(MKINSTALLDIRS) $(libdir)
$(MKINSTALLDIRS) $(DESTDIR)$(libdir)
-if test "$(LIB)" != ""; then \
$(INSTALL_DATA) -m 0555 $(LIB) $(libdir) ; \
$(INSTALL_DATA) -m 0555 $(LIB) $(DESTDIR)$(libdir)/$(LIB) ; \
fi
uninstall:
-if test "$(LIB)" != ""; then \
rm -f $(DESTDIR)$(libdir)/$(LIB) ; \
fi
TAGS: $(SOURCES)
etags $(SOURCES)
@@ -77,3 +80,5 @@ $(LIB): $(OBJECTS)
rm -f $@
$(LDSHARED) -o $@ $(OBJECTS) $(LD_FLAGS) -L../../kafs -L../../krb -L../../des -L../../roken -lkafs -lkrb -ldes -lroken
# $(CC) -shared -Wl,-x -o $(LIB) $(OBJECTS) ../../kafs/libkafs.a ../../krb/libkrb.a ../../des/libdes.a
.PHONY: all Wall install uninstall check clean mostlyclean distclean realclean dist

View File

@@ -42,12 +42,15 @@ Wall:
$(CC) -c $(DEFS) -I../../../include -I$(srcdir) $(CFLAGS) $(CPPFLAGS) $(PICFLAGS) $<
install: all
$(MKINSTALLDIRS) $(libdir)
$(MKINSTALLDIRS) $(DESTDIR)$(libdir)
-if test "$(LIB)" != ""; then \
$(INSTALL_DATA) -m 0555 $(LIB) $(libdir) ; \
$(INSTALL_DATA) -m 0555 $(LIB) $(DESTDIR)$(libdir)/$(LIB) ; \
fi
uninstall:
-if test "$(LIB)" != ""; then \
rm -f $(DESTDIR)$(libdir)/$(LIB) ; \
fi
TAGS: $(SOURCES)
etags $(SOURCES)
@@ -77,3 +80,5 @@ $(OBJECTS): ../../../include/config.h
$(LIB): $(OBJECTS)
rm -f $@
$(LDSHARED) -shared -o $@ -rpath $(libdir) -hidden -exported_symbol siad_\* $(OBJECTS) -L../../kafs -lkafs -L../../kadm -lkadm -L../../krb -lkrb -L../../des -ldes -L../../roken -lroken @LIB_getpwnam_r@ -lc
.PHONY: all Wall install uninstall check clean mostlyclean distclean realclean dist