"Fossies" - the Fresh Open Source Software Archive

Member "bftpd/Makefile.in" (10 Jan 2020, 3585 Bytes) of package /linux/privat/bftpd-5.4.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.in": 5.3_vs_5.4.

    1 VERSION=5.4
    2 CC?=@CC@
    3 INSTALL=@INSTALL@
    4 prefix=@prefix@
    5 CFLAGS=@CFLAGS@ @DEFS@ -Wall -I. -DVERSION=\"$(VERSION)\" -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPREFIX=\"$(prefix)\" @DEBUG@
    6 LIBS=@LIBS@
    7 mandir=@mandir@
    8 sbindir=@sbindir@
    9 DESTDIR=
   10 DIRPAX=@DIRPAX@
   11 PAX=@PAX@
   12 
   13 HEADERS=bftpdutmp.h commands.h commands_admin.h cwd.h dirlist.h list.h login.h logging.h main.h mystring.h options.h targzip.h mypaths.h md5.h md5_loc.h config.h
   14 OBJS=bftpdutmp.o commands.o commands_admin.o cwd.o dirlist.o list.o login.o logging.o main.o mystring.o options.o md5.o
   15 SRCS=bftpdutmp.c commands.c commands_admin.c cwd.c dirlist.c list.c login.c logging.c main.c mystring.c options.c md5.c
   16 
   17 OBJS2LINK=$(OBJS) $(PAX)
   18 LDFLAGS=
   19 
   20 all: bftpd
   21 
   22 bftpd: $(OBJS)
   23 	./mksources $(DIRPAX)
   24 	$(CC) $(OBJS2LINK) $(LDFLAGS) $(LIBS) -o bftpd
   25 
   26 $(OBJS): Makefile
   27 
   28 %.d: %.c Makefile
   29 	$(CC) -MM -MT"$@ $(@:.d=.o)" -MF$@ $(CFLAGS) $(INCLUDES) $<
   30 
   31 ifneq ($(MAKECMDGOALS),clean)
   32 ifneq ($(MAKECMDGOALS),distclean)
   33 -include $(OBJS:.o=.d)
   34 endif
   35 endif
   36 
   37 %.o: %.d
   38 
   39 install: all
   40 	mkdir -p $(DESTDIR)/$(prefix)/sbin
   41 	$(INSTALL) -g 0 -m 700 -o 0 bftpd $(DESTDIR)/$(prefix)/sbin
   42 	mkdir -p $(DESTDIR)/$(mandir)/man8
   43 	$(INSTALL) -g 0 -m 644 -o 0 bftpd.8 $(DESTDIR)/$(mandir)/man8
   44 	mkdir -p $(DESTDIR)/$(prefix)/etc
   45 	[ -f $(DESTDIR)/$(prefix)/etc/bftpd.conf ] || \
   46 		$(INSTALL) -g 0 -m 600 -o 0 bftpd.conf $(DESTDIR)/$(prefix)/etc
   47 	mkdir -p $(DESTDIR)/$(prefix)/var/log
   48 	touch $(DESTDIR)/$(prefix)/var/log/bftpd.log
   49 	chmod 644 $(DESTDIR)/$(prefix)/var/log/bftpd.log
   50 	mkdir -p $(DESTDIR)/$(prefix)/var/run/bftpd
   51 	chmod 755 $(DESTDIR)/$(prefix)/var/run/bftpd
   52 
   53 clean distclean:
   54 	rm -f *~ $(OBJS) bftpd mksources.finished config.cache
   55 	[ "$(DIRPAX)" = "" ] || make -C $(DIRPAX) clean
   56 	rm -f *.d
   57 
   58 newversion: clean
   59 	cat Makefile.in | sed -e s/$(VERSION)/$(NEWVERSION)/g > Makefile.foo
   60 	mv Makefile.foo Makefile.in
   61 	./configure --enable-pax=pax --enable-libz --enable-pam
   62 
   63 uninstall:
   64 	rm -f $(DESTDIR)/$(prefix)/sbin/bftpd $(DESTDIR)/$(mandir)/man8/bftpd.8 \
   65 		$(DESTDIR)/$(prefix)/etc/bftpd.conf
   66 
   67 distribute: install
   68 	rm -rf dist
   69 	mkdir dist
   70 	# Build source tarball
   71 	rm -rf bftpd-$(VERSION)
   72 	mkdir bftpd-$(VERSION)
   73 	autoconf
   74 	autoheader configure.in > config.h.in
   75 	mkdir bftpd-$(VERSION)/doc
   76 	cp CHANGELOG COPYING Makefile.in $(SRCS) $(HEADERS) \
   77 	configure.in configure config.h.in bftpd.conf install-sh mksources \
   78 	bftpd.spec.in acconfig.h bftpd.8 bftpd-$(VERSION)
   79 	cp -r doc bftpd-$(VERSION)
   80 	cd bftpd-$(VERSION)/doc/en && sgml2txt bftpddoc-en.sgml
   81 	cd bftpd-$(VERSION) && ln -s doc/en/bftpddoc-en.txt INSTALL
   82 	cd bftpd-$(VERSION) && ln -s doc/en/bftpddoc-en.txt README
   83 	rm -f -r debian/tmp
   84 	cp -a debian bftpd-$(VERSION)
   85 	tar c bftpd-$(VERSION) | gzip -v9 > dist/bftpd-$(VERSION).tar.gz
   86 	cp -Lr pax bftpd-$(VERSION)
   87 	tar c bftpd-$(VERSION) | gzip -v9 > bftpd-$(VERSION)-pax.tar.gz
   88 	# Build binary RPM
   89 	./configure --enable-pam --enable-libz --enable-pax=pax && make install
   90 	cat bftpd.spec.in | sed -e 's/VERSION/$(VERSION)/g' \
   91 	> bftpd-$(VERSION)-1.spec
   92 	rpm -bb bftpd-$(VERSION)-1.spec
   93 	rm -f bftpd-$(VERSION)-1.spec
   94 	cp -a /usr/src/rpm/RPMS/i386/bftpd-$(VERSION)-1.i386.rpm \
   95 	dist/bftpd-$(VERSION).i386.rpm
   96 	# Build binary DEB
   97 	mv bftpd-$(VERSION)-pax.tar.gz bftpd-$(VERSION).tar.gz
   98 	cd bftpd-$(VERSION) && (\
   99 		cat debian/changelog.in | sed -e 's/VERSION/$(VERSION)/g' \
  100 			> debian/changelog; \
  101 		dpkg-buildpackage; \
  102 	) && cd ..
  103 	rm -f bftpd-$(VERSION).tar.gz
  104 	cp bftpd_$(VERSION)-1_i386.deb dist
  105 	rm -f bftpd_*
  106 	# Remove temporary directory
  107 	rm -rf bftpd-$(VERSION)
  108 
  109 tarball: clean
  110 	(cd .. && tar czf bftpd-$(VERSION).tar.gz bftpd)
  111