source: src-sh/about/Makefile @ c60c604

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since c60c604 was c60c604, checked in by Kris Moore <kris@…>, 14 months ago

Add a new "mkports.sh" helper script, which will convert the git tree into
the pcbsd-utils & pcbsd-utils-qt4 ports.

While here, convert the pcbsd-utils port to use STAGING

  • Property mode set to 100644
File size: 1.2 KB
Line 
1#############################################################################
2# Makefile for building: about
3#############################################################################
4
5####### Compiler, tools and options
6
7PREFIX?= /usr/local
8AR            = ar cqs
9TAR           = tar -cf
10COMPRESS      = gzip -9f
11COPY          = cp -f
12SED           = sed
13COPY_FILE     = $(COPY)
14COPY_DIR      = $(COPY) -R
15INSTALL_FILE  = $(COPY_FILE)
16INSTALL_DIR   = $(COPY_DIR)
17INSTALL_PROGRAM = $(COPY_FILE)
18DEL_FILE      = rm -f
19SYMLINK       = ln -f -s
20DEL_DIR       = rmdir
21MOVE          = mv -f
22CHK_DIR_EXISTS= test -d
23MKDIR         = mkdir -p
24
25first: all
26
27all:
28
29clean:
30
31check: first
32
33install_scripts: first FORCE
34        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)$(PREFIX)/bin/ || $(MKDIR) $(INSTALL_ROOT)$(PREFIX)/bin/
35        -$(INSTALL_FILE) about $(INSTALL_ROOT)$(PREFIX)/bin/
36
37
38uninstall_scripts:  FORCE
39        -$(DEL_FILE) -r $(INSTALL_ROOT)$(PREFIX)/bin/about
40        -$(DEL_DIR) $(INSTALL_ROOT)$(PREFIX)/bin/
41
42
43install_dochmod: first FORCE
44        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)$(PREFIX)/bin/ || $(MKDIR) $(INSTALL_ROOT)$(PREFIX)/bin/
45        chmod 755 $(PREFIX)/bin/about
46
47
48install:  install_scripts install_dochmod  FORCE
49
50uninstall: uninstall_scripts   FORCE
51
52FORCE:
53
Note: See TracBrowser for help on using the repository browser.