| 1 |
|
| 2 |
|
| 3 |
BLDDIR := _build/src/github.com/robertkrimen/otto |
| 4 |
|
| 5 |
%: |
| 6 |
dh $@ --buildsystem=golang --builddirectory=_build --with=golang |
| 7 |
|
| 8 |
execute_after_dh_auto_configure: |
| 9 |
cp /usr/share/javascript/underscore/underscore.min.js $(CURDIR)/underscore/underscore-min.js |
| 10 |
cp -av $(CURDIR)/tools/gen-tokens/templates $(BLDDIR)/tools/gen-tokens |
| 11 |
cp -av $(CURDIR)/tools/gen-tokens/.gen-tokens.yaml $(BLDDIR)/tools/gen-tokens |
| 12 |
cp -av $(CURDIR)/tools/gen-jscore/templates $(BLDDIR)/tools/gen-jscore |
| 13 |
cp -av $(CURDIR)/tools/gen-jscore/.gen-jscore.yaml $(BLDDIR)/tools/gen-jscore |
| 14 |
cp -av $(CURDIR)/underscore/underscore-min.js $(BLDDIR)/underscore |
| 15 |
|
| 16 |
override_dh_clean: |
| 17 |
dh_clean |
| 18 |
rm -vf underscore/underscore-min.js |
| 19 |
|
| 20 |
override_dh_auto_install: |
| 21 |
dh_auto_install -- --no-binaries |