Skip to content

Commit

Permalink
Don't install snek source code
Browse files Browse the repository at this point in the history
There's no good reason to install all of the source code when
installing snek; the general model is now to incorporate new
ports into the snek repository instead.

Signed-off-by: Keith Packard <keithp@keithp.com>
  • Loading branch information
keith-packard committed May 18, 2020
1 parent ac71161 commit 0dd0797
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 37 deletions.
32 changes: 1 addition & 31 deletions Makefile
Expand Up @@ -38,33 +38,7 @@ check: all
+cd test && make $@
+black --check --exclude 'fail-syntax-.*\.py|.*/hosts/.*.py' .

SHAREFILES = \
snek.defs \
$(SNEK_SRC) \
$(SNEK_EXT_SRC) \
$(SNEK_RAW_INC) \
$(SNEK_EXT_INC) \
$(SNEK_BUILTINS) \
$(SNEK_EXT_BUILTINS) \
$(SNEK_ROOT)/snek-gram.ll \
$(SNEK_ROOT)/snek-builtin.py

IMAGEFILES = \
snek.svg

DOCFILES = \
$(IMAGEFILES)

PKGFILES = \
snek.pc

install: $(SHAREFILES) $(PKGFILES) $(DOCFILES)
install -d $(DESTDIR)$(SHAREDIR)
for i in $(SHAREFILES); do install --mode=644 "$$i" $(DESTDIR)$(SHAREDIR) || exit 1; done
install -d $(DESTDIR)$(PKGCONFIG)
for i in $(PKGFILES); do install --mode=644 "$$i" $(DESTDIR)$(PKGCONFIG) || exit 1; done
install -d $(DESTDIR)$(DOCDIR)
for i in $(DOCFILES); do install --mode=644 "$$i" $(DESTDIR)$(DOCDIR) || exit 1; done
install:
+for dir in $(SUBDIRS); do (cd $$dir && make PREFIX=$(PREFIX) DESTDIR=$(DESTDIR) $@) || exit 1; done
+for snek in $(SNEKS); do (cd `dirname $$snek` && make PREFIX=$(PREFIX) DESTDIR=$(DESTDIR) $@) || exit 1; done

Expand All @@ -76,16 +50,12 @@ otheros: $(SNEKS)
+cd doc && make
+for otheros in $(SNEK_OTHEROS_DIR); do (cd "$$otheros" && make); done

snek.pc: snek.pc.in
$(SNEK_SED) $^ > $@

snek-mu.py:
find . -name '*.builtin' -print0 | xargs -0 python3 ./snek-builtin.py --mu -o $@

docker:
docker build -t phsilva/snek .

clean:
rm -f snek.pc
+for dir in $(SUBDIRS); do (cd $$dir && make PREFIX=$(PREFIX) DESTDIR=$(DESTDIR) $@); done
+for snek in $(SNEKS); do (cd `dirname $$snek` && make PREFIX=$(PREFIX) DESTDIR=$(DESTDIR) $@); done
6 changes: 0 additions & 6 deletions snek.pc.in

This file was deleted.

0 comments on commit 0dd0797

Please sign in to comment.