source: src-sh/pc-installdialog/Makefile @ 0843d04d

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

Add a *VERY* basic text-frontend to "pc-sysinstall". This will
allow users to use text-mode to install PC-BSD / TrueOS. i

Still need to link it into the install media.

Over time this will evolve into a more full-featured installer, but
for now it gets us started.

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