"Fossies" - the Fresh Open Source Software Archive

Member "bftpd/Makefile" (10 Jan 2020, 3651 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": 5.3_vs_5.4.

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