Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
autofs/Makefile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
64 lines (46 sloc)
1.63 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Main Makefile for the autofs user-space tools | |
# | |
-include Makefile.conf | |
include Makefile.rules | |
.PHONY: daemon all clean samples install install_samples | |
.PHONY: mrproper distclean backup | |
all: daemon samples | |
daemon: | |
set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i all; done | |
kernel: | |
set -e; if [ -d kernel ]; then $(MAKE) -C kernel all; fi | |
samples: | |
set -e; if [ -d samples ]; then $(MAKE) -C samples all; fi | |
clean: | |
for i in $(SUBDIRS) samples; do \ | |
if [ -d $$i ]; then $(MAKE) -C $$i clean; fi; done | |
install: | |
set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i install; done | |
install_kernel: | |
set -e; if [ -d kernel ]; then $(MAKE) -C kernel install; fi | |
install_samples: | |
set -e; if [ -d samples ]; then $(MAKE) -C samples install; fi | |
mrproper distclean: clean | |
find . -noleaf \( -name '*~' -o -name '#*' -o -name '*.orig' -o -name '*.rej' -o -name '*.old' \) -print0 | xargs -0 rm -f | |
-rm -f include/config.h Makefile.conf config.* .autofs-* | |
echo x > .autofs-`cat .version` | |
sed -e "s/(\.autofs-[0-9.]\+)/(.autofs-`cat .version`)/" < configure.in > configure.in.tmp | |
mv -f configure.in.tmp configure.in | |
rm -f configure | |
$(MAKE) configure | |
TODAY := $(shell date +'%Y%m%d') | |
PKGDIR := $(shell basename `pwd`) | |
VERSION := $(shell cat .version) | |
backup: mrproper | |
cd .. ; tar zcf - $(PKGDIR) | gzip -9 > autofs-$(VERSION)-bu-$(TODAY).tar.gz | |
configure: configure.in aclocal.m4 | |
autoconf | |
autoheader | |
rm -rf config.* *.cache | |
configure.in: .version | |
-rm -f .autofs-* | |
echo x > .autofs-`cat .version` | |
sed -e "s/(\.autofs-[0-9.]\+)/(.autofs-`cat .version`)/" < configure.in > configure.in.tmp | |
mv -f configure.in.tmp configure.in | |
-include Makefile.private | |