source: src-sh/about/Makefile @ 5053ee4

releng/10.0.1releng/10.0.2releng/10.0.3
Last change on this file since 5053ee4 was 5053ee4, checked in by Kris Moore <kris@…>, 6 months ago

Update src-sh/about script to auto-create the
/usr/local/share/pcbsd/version file during installation

This file will be used to pull the specific PC-BSD version string

  • Property mode set to 100644
File size: 1.3 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
42install_doinstall:
43        sh install.sh $(PREFIX)
44
45install_dochmod: first FORCE
46        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)$(PREFIX)/bin/ || $(MKDIR) $(INSTALL_ROOT)$(PREFIX)/bin/
47        chmod 755 $(PREFIX)/bin/about
48
49
50install:  install_scripts install_dochmod install_doinstall FORCE
51
52uninstall: uninstall_scripts   FORCE
53
54FORCE:
Note: See TracBrowser for help on using the repository browser.