diff options
author | Mattias Andrée <maandree@kth.se> | 2017-10-19 20:06:26 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2017-10-19 20:06:26 +0200 |
commit | e06ed443542d3fbd8a070e08d275db10bec9d353 (patch) | |
tree | 62776742bcb8b5aec1d28d604092bc750f0414c6 /Makefile | |
parent | m build system fix (diff) | |
download | vtchs-e06ed443542d3fbd8a070e08d275db10bec9d353.tar.gz vtchs-e06ed443542d3fbd8a070e08d275db10bec9d353.tar.bz2 vtchs-e06ed443542d3fbd8a070e08d275db10bec9d353.tar.xz |
Rewrite and relicense
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | Makefile | 32 | ||||
-rw-r--r-- | Makefile.in | 88 |
2 files changed, 32 insertions, 88 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..bae4d19 --- /dev/null +++ b/Makefile @@ -0,0 +1,32 @@ +.POSIX: + +CONFIGFILE = config.mk +include $(CONFIGFILE) + +all: vtchs + +.o: + $(CC) -o $@ $^ $(LDFLAGS) + +.c.o: + $(CC) -c -o $@ $< $(CPPFLAGS) $(CFLAGS) + +install: vtchs + mkdir -p -- "$(DESTDIR)$(PREFIX)/bin" + mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1" + mkdir -p -- "$(DESTDIR)$(PREFIX)/share/licenses/vtchs" + cp vtchs -- "$(DESTDIR)$(PREFIX)/bin/" + cp vtchs.1 -- "$(DESTDIR)$(MANPREFIX)/man1/" + cp LICENSE -- "$(DESTDIR)$(PREFIX)/share/licenses/vtchs/" + +uninstall: + -rm -f -- "$(DESTDIR)$(PREFIX)/bin/vtchs" + -rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/vtchs.1" + -rm -rf -- "$(DESTDIR)$(PREFIX)/share/licenses/vtchs" + +clean: + -rm -f - vtchs *o + +.SUFFIXES: .o .c.o + +.PHONY: all install uninstall clean diff --git a/Makefile.in b/Makefile.in deleted file mode 100644 index 4c21d01..0000000 --- a/Makefile.in +++ /dev/null @@ -1,88 +0,0 @@ -# Copyright (C) 2015 Mattias Andrée <maandree@member.fsf.org> -# -# Copying and distribution of this file, with or without modification, -# are permitted in any medium without royalty provided the copyright -# notice and this notice are preserved. This file is offered as-is, -# without any warranty. - - -### This file will be stored to Makefile once you have run ./configure. ### -### See INSTALL for information on how to install this package. ### - - - -# List of man page translations to install. -MAN_LOCALES = - -# Can change these variables with ./configure in the same why you -# would configure them when running make. - - - -##### What is below this line is configurable, but is seldom useful. ##### - - -# Additional options for compiling DVI, PDF, and PostScript manuals. -TEXINFO_FLAGS = - -# The name of the command as it should be installed. -COMMAND = vtchs - -# The name of the package as it should be installed. -PKGNAME = vtchs - - - -##### Nothing interesting below this. ##### - - -# In case you want add some configurations. Primarily -# intended for maintainers. Perhaps add GPG_KEY here. -# Of course, you can declare everthing with ./configure, -# but with this you are less likely to forget it. --include .make-configurations - - -# YOU, AS A USER, SHOULD NOT CHANGE THESE VARIABLES. {{ -# They specify how the reusable makefiles in mk/ shall behave. - -# Package information. -_PROJECT = vtchs -_VERSION = 1.0 - -# Used by mk/lang-c.mk -_C_STD = c99 -_PEDANTIC = yes -_BIN = vtchs -_OBJ_vtchs = vtchs -_HEADER_DIRLEVELS = 0 -_CPPFLAGS = -D'PACKAGE="$(PKGNAME)"' -D'PROGRAM_VERSION="$(_VERSION)"' - -# Used by mk/texinfo.mk -_TEXINFO_DIRLEVELS = 2 -_INFOPARTS = 0 -_HAVE_TEXINFO_MANUAL = yes -_HTML_FILES = Free-Software-Needs-Free-Documentation.html GNU-Free-Documentation-License.html \ - index.html Invoking.html Overview.html - -# Used by mk/man.mk -_MAN_PAGE_SECTIONS = 1 -_MAN_1 = vtchs - -# Used by mk/copy.mk -_COPYING = COPYING - -# Used by mk/dist.mk -___EVERYTHING_INFO = vtchs titlepage-data content hardcopy-copying \ - appx/fdl appx/free-software-needs-free-documentation \ - chap/invoking chap/overview \ - reusable/macros reusable/paper reusable/titlepage -_EVERYTHING = $(foreach F,$(___EVERYTHING_INFO),doc/info/$(F).texinfo) \ - $(__EVERYTHING_ALL_COMMON) DEPENDENCIES INSTALL NEWS - -# }} - - -# All of the make rules and the configurations. -include $(v)mk/all.mk - |