blob: 644a361255c6bbc7fbe434aa2dfedbe0c45c4d92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
INSTALL_DIR=~/bin/acme
BUILD_DIR=build
.SUFFIXES: .sh .o
SOURCES!=ls *.sh
OBJECTS=${SOURCES:.sh=}
D!=echo $(OBJECTS) | sed "s|^|$(INSTALL_DIR)/|g" | sed "s| | $(INSTALL_DIR)/|g"
.sh:
chmod +x ${.IMPSRC}
ln -s ${.CURDIR}/${.IMPSRC} ${.TARGET}
build: $(OBJECTS)
clean:
find ${.CURDIR} -type l -exec rm -f '{}' \;
install: build
find ${.CURDIR} -type l -exec cp -R -P '{}' ${INSTALL_DIR}/ \;
uninstall:
rm -f $(D)
|